//
//  MGZImgsVC.m
//  Demo
//
//  Created by lx on 2019/3/13.
//  Copyright © 2019 mgz. All rights reserved.
//

#import "MGZImgsVC.h"
#import "MGZImgsView.h"
#import <Masonry.h>
@interface MGZImgsVC ()

@end

@implementation MGZImgsVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    MGZImgsView *imgView = [[MGZImgsView alloc]init];
    [self.view addSubview:imgView];
    imgView.backgroundColor = [UIColor blueColor];
    imgView.imgsViewLayoutType = MGZImgsViewLayoutTypeNine;
    imgView.imgsArr = [[NSMutableArray alloc]initWithArray:@[@"",@"",@"",@"",@"",@"",@""]];
    imgView.imgsEnabled = YES;
    imgView.imgClick = ^(NSInteger index) {
        NSLog(@"点击第%zd个图片",index);
    };
    [imgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.mas_equalTo(self.view);
        make.centerY.mas_equalTo(self.view);
    }];
    
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
